<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<title>${map.title }</title>
<link href="/static/js/prettify/prettify.css" rel="stylesheet" type="text/css" />
<script src="/static/js/prettify/prettify.js" type="text/javascript" ></script>
<style>
.posts {
	background-color: #f2f2f2;
	-moz-box-shadow: 0 4px 0 rgba(94, 94, 94, 0.1);
	-webkit-box-shadow: 0 4px 0 rgba(94, 94, 94, 0.1);
	box-shadow: 0 4px 0 rgba(94, 94, 94, 0.1);
}
.posts-pagination {
	text-align: center;
	margin-top: -30px;
	margin-bottom: -15px;
}
.post {
	border-bottom: 1px dotted #ccc;
	margin-bottom: 20px;
}
.post h1 a,
.post h3 a {
	text-decoration: none;
	color: #000000;
}

.post-bottom {
	margin-bottom: 10px;
}
.pagination li a{
	margin-left: 5px;
}
</style>
<script>
$(document).ready(function(){
	$('pre').addClass('linenums')
	prettyPrint();
})
</script>
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="posts col-md-8 col-md-offset-2">
				<div class="post">
					<h1 class="text-center"><a href="#">${map.title }</a></h1>
					<p>${map.content }</p>
					<div class="post-bottom">
						发布于 ${map.createdTime } 
						<span>评论(${map.commentNum })</span> 
						<span>阅读(${map.readNum })</span>
						<span><a href="/admin/post/${map.id }">修改</a></span>
					</div>
				</div>
				<!-- 多说评论框 start -->
				<div class="ds-thread" data-thread-key="${map.id }" data-title="${map.title }" data-url="/post/${map.id }"></div>
			</div>
		</div>
	</div>
	
	
	
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"52java"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
	</script>
<!-- 多说公共JS代码 end -->
</body>
</html>